package com.bestv.search.common.dao;

import com.bestv.search.common.model.SearchKeywordHistory;
import com.bestv.search.common.model.TopNCache;

import java.util.Date;
import java.util.List;

public interface SearchKeywordHistoryDao extends GenericDao<SearchKeywordHistory, Long> {

    Date getMaxDate();

    void removeByDate(Date date);

    List<String[]> getSearchKeywordHistoryByKeyword(String keyword, Date startDate, Date endDate, String type);

    List<TopNCache> getKeywordTopNCache(String type);

    void deleteHistroyByKeyword(String keyword);
}
